package com.example.xlzx.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author 1
 * @since 2025-03-07
 */
@Data
@TableName("user")
@ApiModel(value="User对象", description="用户表")
public class User extends BaseEntity  {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户 ID，主键，自增")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户名，唯一")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "邮箱，唯一")
    private String email;

    @ApiModelProperty(value = "用户真实姓名")
    private String userRealName;

    @ApiModelProperty(value = "用户身份")
    private int type;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "头像 URL")
    private String avatar;

    @ApiModelProperty(value = "性别（1=男，2=女）")
    private Integer gender;




}
